package com.example.design.shejimoshi.action.template.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    Monday monday;

    @Override
    public void test() {
        // 执行模板方法
        monday.dailyRoutineTemplateMethod();
        // 其他业务逻辑
    }
}
